"use strict"
const Koa = require('koa');
const bodyParser = require('koa-bodyparser');
const cors = require('koa-cors');
const ProductRouter = require('./router')
const { sync } = require('./moudl')

let app = new Koa();

sync()
app.use(cors());
app.use(bodyParser());
app.use(ProductRouter())

app.listen(3000);

console.log('服务已经开始运行了:http://localhost:3000');